<!DOCTYPE html>
<html>
<head>
    {include file='public/meta'/}
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/cardinfo.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/tidy.css">


    <script src="__STATIC_URL__/static/laydate/laydate.js"></script>
    <script src="__STATIC_URL__/static/js/times.js"></script>

    <style>
        .checkbox input[type="checkbox"], .checkbox input[type="radio"] {
            width: 18px;
            height: 18px;
            margin-top: 1px;
        }
    </style>
</head>
<body id="body">
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading mgl15 mgr15">
            <ol class="breadcrumb">
                <li>当前位置是&nbsp;:</li>
                <li><a href="{:url('cardus/carduslist')}">会员卡管理</a></li>
                <li>
                    <a href="javascript:history.back();">分享设置</a>
                </li>
                <li class="active" style="color: #02b87f;"> 分享记录</li>
            </ol>
        </div>
        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading">
                <h5 class="panel-title">
                    分享统计
                </h5>
            </div>
            <div class="panel-body">
                <form action="" method="get" class="form-horizontal table-search form-search" role="form" id="machform">
                    <div class="col-sm-4 col-md-4 col-lg-4 ">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">卡号：</label>
                            <div class="col-sm-9">
                                <input type="text" autocomplete="off" disableautocomplete class="form-control"  placeholder="请输入卡号" value="" name="code">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 col-md-4 col-lg-4 ">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">门店名称：</label>
                            <div class="col-sm-9">
                                <select name="merchant" id="" class="form-control">
                                    <option value="">所有门店</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-4 col-md-4 col-lg-4">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">时间：</label>
                            <div class="col-sm-9">
                                <input name="search_date" type="text" value=""  readonly="readonly" id="search_date" placeholder="请选择" class="form-control">

                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <div class="panel-footer">
                <a href="javascript:;" class="btn btn-primary" onclick="searchform()">查找</a>
                <a href="javascript:;" class="btn btn-default" onclick="clearform()">清空</a>
            </div>
        </div>

        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading">
                <h5 class="panel-title">
                    充值分析

                </h5>
            </div>
            <div class="panel-body">
                <ul class="fenxilist clearfix">
                    <li class="col-sm-2">
                        <div>推荐人数(总)</div>
                        <div>{$info['share_ren']}人</div>
                    </li>
                    <li class="col-sm-2">
                        <div>推荐开卡人数(总)</div>
                        <div>{$info['open_ren']}人</div>
                    </li>
                    <li class="col-sm-2">
                        <div>推荐激活激活人数(总)</div>
                        <div>{$info['fire_ren']}人</div>
                    </li>
                    <li class="col-sm-2">
                        <div>储值笔数(总)</div>
                        <div>{$info['reg_num']}笔</div>
                    </li>
                    <li class="col-sm-2">
                        <div>储值金额(总)</div>
                        <div>{$info['reg_price']}元</div>
                    </li>

                    <li class="col-sm-2">
                        <div>消费金额(总)</div>
                        <div>{$info['xf_price']}元</div>
                    </li>
                </ul>
            </div>
        </div>


        <div class="panel mgl15 mgr15" >
            <div class="panel-heading addCharts" style="background:#ededed;">充值明细</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <th>卡号</th>
                    <th>推荐人</th>
                    <th>开卡数</th>
                    <th>储值笔数</th>
                    <th>储值金额</th>
                    <!--<th>次卡笔数</th>-->
                    <!--<th>次卡金额</th>-->
                    <th>推荐领取</th>
                    <th>推荐激活</th>
                    <th>创建时间</th>
                    <th>明细</th>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo"}
                    <tr>
                        <td>{:getcodeopenid($vo['openid'],$vo['card_id'])}</td>
                        <td>{:getnicknameopenid($vo['openid'])}</td>
                        <td>{$vo['fire_ren']}</td>
                        <td>{$vo['cz_num']}</td>
                        <td>{$vo['cz_price_num']}</td>
                        <!--<td></td>-->
                        <!--<td></td>-->
                        <td>{$vo.get_ren} | <a class="btn-link" href="{:url('marke/sharelog',['outerstr'=>$vo['outerstr']])}">查看</a></td>
                        <td>{$vo.fire_ren} | <a class="btn-link" href="{:url('marke/sharelog',['outerstr'=>$vo['outerstr'],'fire'=>'1'])}">查看</a></td>
                        <td>{$vo.create_time}</td>
                        <td><a href="{:url('marke/sharelog',['outerstr'=>$vo['outerstr']])}" class="btn-link">查看</a></td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>
            </div>
            {$list->render()}
        </div>

        {include file='public/footer'/}
    </div>
</section>
</body>
<script type="text/javascript">

    //筛选条件
    function filtertj() {
        $("#payform").submit();
    };
    //筛选条件
    function cleartj() {
        $(".form-virtical input").val("");
        $("select").val("");
    };
</script>
</html>
